# Contributor: Tim Yang <tdy@gmx.com>
pkgname=python-pymedia
pkgver=1.3.7.3
pkgrel=1
pkgdesc="A Python library for accessing and manipulating multimedia files"
arch=('i686' 'x86_64')
url="http://pymedia.org/"
license=('LGPL')
depends=('alsa-lib' 'ffmpeg' 'python')
optdepends=('faad2: AAC support'
            'lame: MP3 support'
            'libogg: Ogg support'
            'libvorbis: Vorbis support')
source=(http://downloads.sourceforge.net/pymedia/pymedia-$pkgver.tar.gz
        pymedia-$pkgver-amd64-gentoo.diff)
md5sums=('2f4930c63866c97af5090b176e2a118a'
         '3137e65e1208db98e404ee894fcd744a')

build() {
  cd "$srcdir/pymedia-$pkgver"
  patch -Np1 -i ../pymedia-$pkgver-amd64-gentoo.diff || return 1
  python setup.py build || return 1
  python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
